<?php
/**
 * Dispatch Return
 */
class SDR extends AppModel {
    var $name = 'SDR';

    var $useTable = 'supplier_dispatch_returns';

    var $belongsTo = array('Product', 'CustProductSite',
        'SDRH' => array(
            'foreignKey' => 'supplier_dispatch_return_head_id'
        ),
    );

    var $validate = array(
        'return_qty' => array(
                'rule' => 'numeric',
                'message' => 'Please input return qty.',
                'on' => 'create'
        ),
    );
}
?>
